package wang.chunfan.springcloud.learning.consul.user.server.service;

import wang.chunfan.springcloud.learning.consul.user.server.model.User;

import java.util.List;

/**
 * @version 1.0
 * @Author wangchunfan
 * @Date 2020/5/22 10:07
 **/
public interface UserService {

    void insert(User user);

    void delete(Long id);

    void update(User user);

    User get(Long id);

    List<User> getByUsername(String username);

    List<User> listByIds(List<Long> ids);


}
